
import { Button } from 'antd';
import React, { Component } from 'react'
import SonA from './SonA'
import SonB from './SonB'

export default class Parent extends Component {

  constructor(props){
    super(props);
    this.props = props;
  }
    
  render() {
    return (
        <>
        <h1>兄弟组件通信(发布订阅)</h1>
        <div>Parent</div>
       
        <SonA ></SonA>
        <hr/>
        <SonB ></SonB>
      </>
    )
  }
}
